package com.liang.crawlertx.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "txnews")
public class News implements Serializable {

    private String id;
    private String newId;
    private String title;
    private String content;
    private String url;
    private String articleAccount;
    private Date createdTime;
    private LocalDateTime crawledTime;
    private String img;
}
